@echo off

set rules=package
echo rules=%rules%

rd /s /q work
svn co https://entelijan.net/svn/javaprj/util/showcase-framework/trunc work
call mvn -U -f work/pom.xml %rules%
if %errorlevel% NEQ 0 goto :end

rd /s /q work
svn co https://entelijan.net/svn/javaprj/util/data work
call mvn -U -f work/pom.xml %rules%
if %errorlevel% NEQ 0 goto :end

rd /s /q work
svn co https://entelijan.net/svn/javaprj/cobean1/cobean-pom work
call mvn -U -f work/pom.xml %rules%
if %errorlevel% NEQ 0 goto :end

rd /s /q work
svn co https://entelijan.net/svn/javaprj/jacobin/jacobin-pom work
call mvn -U -f work/pom.xml %rules%
if %errorlevel% NEQ 0 goto :end

rd /s /q work
goto :end

:end
set /P dummy=Press any key to continue...
